package com.springboot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.entity.BlogUserLoginJwtEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 登录信息表 Mapper 接口
 * </p>
 *
 * @author zyj
 * @since 2023-05-23
 */
@Mapper
public interface BlogUserLoginJwtDao extends BaseMapper<BlogUserLoginJwtEntity> {
    List<BlogUserLoginJwtEntity> selectByUserId(String userId);

    int deleteByUserId(String userId);

    BlogUserLoginJwtEntity selectByUserIdAndJwt(@Param("userId") Integer userId,@Param("jwt")  String jwt);
}
